package unit4.part12.student_score;

public class Lesson {
    Student[] students;

    public Lesson(Student[] students) {
        this.students = students;
    }

    public void printStudentScoreByName(String studentName) {
        for (Student student : students) {
            if (student.name.equals(studentName)) {
                System.out.println(student.score.totalScore());
                return;
            }
        }
    }
}
